public class NGuessNumber {
    int []answers = new int[4];
    public int[]generteAnswers(){
        answers[0]=(int)(Math.random()*10);
        answers[1]=(int)(Math.random()*10);
        answers[2]=(int)(Math.random()*10);
        answers[3]=(int)(Math.random()*10);
        return answers;
    }

    public static void main(String[] args) {
        NGuessNumber nGuessNumber = new NGuessNumber();
        int[]answers=nGuessNumber.generteAnswers();
        for(int i = 0;i<answers.length;i++){
            System.out.println(answers[i]);
        }
    }
}
